package com.itheima.dao;

import com.itheima.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tang
 * @date 2022/11/21 16:39
 */
public interface EmployeeDao {

    Employee login(String username);

    Integer slectCount(String username);

    void add(Employee employee);

    List<Employee> findPage(@Param("page") Integer page, @Param("pageSize") Integer pageSize, @Param(value = "name") String name);

    Integer findCount(@Param("page") Integer page, @Param("pageSize") Integer pageSize, @Param(value = "name") String name);


    Integer findCountById(Long id);

    Integer enableOrDisableById(@Param("id") Long id, @Param("status") Integer status);

    Employee queryEmployeeById(Long id);

    Integer editEmployee(Employee employee);

     Integer queryEmployeeByIdAndUserName(@Param("username") String username,@Param("id") Long id);


}
